/** 
Copyright (c) 2010, Sheikh Abdul Wahid Ahmed
Details @ http://extremecodeworld.codeplex.com/license
**/

using System;
using System.Data;
using System.Xml;
using System.IO;

namespace EXtremecode.Utils.Configurations
{
	/// <summary>
	/// Summary description for Provider.
	/// </summary>
	public class Provider
	{
		
		internal static string DateFormat
		{
			get
			{
				string str=System.Configuration.ConfigurationSettings.AppSettings[Keys.DATE_FORMAT];
				if(str == null || str==string.Empty)
				{
					//default
					str="dd/MM/yyyy";
				}
				
				return str;
			}
		}
		internal static string TimeFormat
		{
			get
			{
				string str=System.Configuration.ConfigurationSettings.AppSettings[Keys.TIME_FORMAT];

				if(str == null || str==string.Empty)
				{
					//default
					str="HH:mm";
				}
				return str;
			}
		}

		internal static string DateSeparator
		{
			get
			{
				string str=System.Configuration.ConfigurationSettings.AppSettings[Keys.DATE_SEPARATOR];

				if(str == null || str==string.Empty)
				{
					//default
					str="/";
				}
				return str;
			}
		}

		internal static string TimeSeparator
		{
			get
			{
				string str=System.Configuration.ConfigurationSettings.AppSettings[Keys.TIME_SEPARATOR];

				if(str == null || str==string.Empty)
				{
					//default
					str=":";
				}
				return str;
			}
		}

		private static string GetValue(string appKey)
		{
			string str=System.Configuration.ConfigurationSettings.AppSettings[appKey];
			return str;
		}


	}
}
